﻿<phone:PhoneApplicationPage 
    x:Class="WeiTalk.PeoplePage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    SupportedOrientations="Portrait" Orientation="Portrait"
    mc:Ignorable="d" d:DesignHeight="768" d:DesignWidth="480"
    shell:SystemTray.IsVisible="True" Loaded="People_Loaded" Background="Black">

    <!--LayoutRoot 是包含所有页面内容的根网格-->
    <Grid x:Name="LayoutRoot" Background="#FF380948">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
			 <RowDefinition Height="Auto"/>
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>

        <!--TitlePanel 包含应用程序的名称和页标题-->
        <StackPanel x:Name="TitlePanel" Grid.Row="0" Margin="0,5,0,0" Background="#00000000">
        	<TextBlock x:Name="ApplicationTitle" Style="{StaticResource PhoneTextNormalStyle}" Text="人脉..." Margin="12,0,12,12" FontSize="21.333" FontStyle="Italic" FontFamily="Symbol" Foreground="#FFD4D4D4"/>
        </StackPanel>
		
		 <StackPanel x:Name="SearchPanel" Grid.Row="1" Margin="0" Orientation="Horizontal">
		 	<StackPanel.Background>
		 		<ImageBrush Stretch="Fill"/>
		 	</StackPanel.Background>
           <TextBox x:Name="tbSearch" BorderThickness="0" Margin="5,0,0,0" Width="390" ToolTipService.ToolTip="输入朋友名称进行查找..." />
		   <Button Width="100" Height="70" x:Name="btnSearch" BorderThickness="1" Margin="-20,0,0,0" Click="btnSearch_Click">
		   	<Button.Background>
		   		<ImageBrush Stretch="UniformToFill" ImageSource="/Images/appbar.feature.search.rest.png"/>
		   	</Button.Background>
		   </Button>
        </StackPanel>

        <!--ContentPanel - 在此处放置其他内容-->
        <Grid x:Name="ContentPanel" Grid.Row="2" Margin="12,0,12,0">
        	<ScrollViewer x:Name="svPeople">
        		  <StackPanel x:Name="spPeople"></StackPanel>
			</ScrollViewer>      
		</Grid>
    </Grid>
 
    <!--演示 ApplicationBar 用法的示例代码-->
    <!--<phone:PhoneApplicationPage.ApplicationBar>
        <shell:ApplicationBar IsVisible="True" IsMenuEnabled="True">
            <shell:ApplicationBarIconButton IconUri="/Images/appbar_button1.png" Text="按钮 1"/>
            <shell:ApplicationBarIconButton IconUri="/Images/appbar_button2.png" Text="按钮 2"/>
            <shell:ApplicationBar.MenuItems>
                <shell:ApplicationBarMenuItem Text="菜单项 1"/>
                <shell:ApplicationBarMenuItem Text="菜单项 2"/>
            </shell:ApplicationBar.MenuItems>
        </shell:ApplicationBar>
    </phone:PhoneApplicationPage.ApplicationBar>-->

</phone:PhoneApplicationPage>
